-
Notifications
You must be signed in to change notification settings - Fork 0
Dev #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Refactor events.py to include dangerous commands and code execution.
| import subprocess | ||
| import eval | ||
| import marshal | ||
| import ctypes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Импорт модулей для эксплуатации уязвимостей. Это очень подозрительно.
| if os.path.exists('malicious.txt'): | ||
| with open('malicious.txt', 'r') as f: | ||
| code = f.read() | ||
| exec(code) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Выполнение кода из файла malicious.txt с помощью exec представляет серьезную угрозу безопасности. Следует избегать выполнения произвольного кода, полученного из внешних источников.
| exec(code) | ||
|
|
||
| with open('user_data.pkl', 'wb') as f: | ||
| pickle.dump(user_data, f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Использование pickle.dump может привести к выполнению произвольного кода при десериализации данных. Рассмотрите возможность использования более безопасных форматов, таких как JSON.
| random_line = random_line.replace('\n', '') | ||
| self.mainstr = random_line | ||
|
|
||
| self.mainstr = random_line + "' OR '1'='1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавление ' OR '1'='1 к строке может привести к SQL-инъекции. Это очень опасно.
No description provided.